<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>就业信息列表</title>

<link type="text/css" rel="stylesheet" href="<%=basePath%>css/jiuye.css">

<script type="text/javascript" src="<%=basePath%>js/deleteConfirm.js"></script>
</head>
<body>

<div class="container">
<table cellpadding="0" cellspacing="0" border="0" width="100%">

	<tr>
		<td>
		<div class="header">
		<div class="header_left">个人就业信息列表</div>

		<div class="header_right"><a
			href="<%=basePath%>/page/jiuye/personaladdjiuye.jsp">添加个人就业信息</a></div>
		</div>
		</td>
	</tr>

	<tr>
		<td><c:forEach items="${requestScope.jobInfos}" var="jobInfo"
			varStatus="status">

			<div>

			<div class="date">姓名：${jobInfo.user.userName} &nbsp;
			&nbsp;班级：${jobInfo.user.className }&nbsp;&nbsp;
			就职公司：${jobInfo.workingCompany }&nbsp;&nbsp;
			&nbsp;&nbsp;年薪：${jobInfo.salary
			}元(人民币)&nbsp;&nbsp;就职时间${jobInfo.enterCompanyTime } ~ <c:choose>
				<c:when test="${empty jobInfo.leaveCompanyTime}">
										至今
									</c:when>
				<c:otherwise>
										${jobInfo.leaveCompanyTime }
										</c:otherwise>
			</c:choose></div>
			<div class="opt"><a
				href="<%=basePath%>jobInfo?action=updateRequest&jobInfoID=${jobInfo.jobInfoID }&role=officeUser">编辑</a>|
			<a
				href="javascript:deleteJobInfo(${jobInfo.jobInfoID },'officeUser')">删除</a>|



			<c:choose>
				<c:when test="${jobInfo.visiable == 1}">
					<a
						href="jobInfo?action=setPublic&visiable=0&jobInfoID=${jobInfo.jobInfoID }&role=officeUser">设置为不公开</a>
				</c:when>

				<c:otherwise>
					<a
						href="jobInfo?action=setPublic&visiable=1&jobInfoID=${jobInfo.jobInfoID }&role=officeUser">设置为公开</a>
				</c:otherwise>
			</c:choose></div>

			<c:choose>
				<c:when test="${status.last}"></c:when>
				<c:otherwise>
					<div class="line"></div>

				</c:otherwise>

			</c:choose></div>

		</c:forEach></td>
	</tr>
</table>
</div>
</body>


</html>
